package com.cyzy.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyzy.pojo.*;
import org.apache.ibatis.annotations.Mapper;


/**
 * @author zxw
 * @create 2025-05-22 下午5:01
 */
@Mapper
public interface CheckMapper {
    //------------------------------------------
    //               秒杀审核
    //------------------------------------------
    Page<CheckSeckill> selectAllSeckillInfo(Page<CheckSeckill> page, GetSeckillCheck getSeckillCheck);

    int updateSeckill(String seckillId, String status, String rejectReason);

    EmailTemplates getContent(String templateName);

    String selectUserEmail(long seckillId);
    //------------------------------------------
    //               活动审核
    //------------------------------------------
    Page<CheckActivity> selectAllActivityInfo(Page<CheckActivity> page, GetActivityCheck getActivityCheck);

    String selectActivityUserEmail(long activityId);

    int updateActivity(String activityId, String status, String rejectReason);
    //------------------------------------------
    //               广告审核
    //------------------------------------------
    Page<Advert> selectAllAdvertInfo(Page<Advert> page, GetAdvertCheck getAdvertCheck);

    int updateAdvert(String advertId, String status, String rejectReason);

    String selectAdvertUserEmail(long advertId);
}
